Key rotation with external workflows

ABSTRACT

A material set, such as an asymmetric keypair, is processed using an associated workflow to prepare the material set for activation and/or use. In one embodiment, a material set is generated and information about the material set is communicated to a workflow manager. Based at least on the information, the workflow manager generates a workflow that when accomplished will allow the material set to be activated and/or used. In another embodiment, a service provider provides a key manager, workflow manager and destination for the key, such as a load balancer that terminates SSL connections. A key can be generated by the key manager, sent through the workflow manager for processing (potentially communicated to third parties such as a certificate authority, if needed) and installed at a destination.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is related to and incorporates by reference for all purposes the full disclosure of co-pending U.S. patent application Ser. No. 13/474,536, filed concurrently herewith, entitled “Automating Key Rotation in a Distributed System”.

BACKGROUND

In many systems, a key must be processed before it can be useful. For example, a public/private keypair must be processed before it can be used in Secure Socket Layer (SSL) or Transport Layer Security (TLS) communications. After a requestor generates the public/private keypair, the requestor then creates a certificate signing request that ties the public portion of the keypair to an identity such that a Certificate Authority is satisfied. The Certificate Authority, when satisfied with the identity of the requestor, sends back an identity certificate that has been signed by the Certificate Authority. The keypair and certificate are then installed on a system to service secure communication for the requestor. After installation, the keypair and certificate are ready for use and may be considered active.

Use of a single key for an extended period may not be advisable, as a key can become compromised. Key rotation and maintenance can allow administrators to reduce risk of system compromise by reducing the time that a compromised key may be actively used. For example, an administration team can choose to rotate a certificate used for communication over SSL. As many different systems are involved, an administration team may manually perform many steps and manually move information from one system to another. Tools, such as a keypair generator, may be used to aid during the key rotation. Once the administration is satisfied that all servers have the new certificate active, the key rotation may be considered completed. However, key rotation can be both a benefit and problem. Key rotation and maintenance can present security issues as manual intervention and internal and external systems may be involved. For example, keypair generation and installation of a certificate with a private key of the keypair requires access to the private key. If an administrative account is accidently compromised, the private key may be viewed and/or accessed. Similarly, mistakes may happen where a private key is improperly stored, generated or transmitted causing exposure of the private key.

BRIEF DESCRIPTION OF THE DRAWINGS

Various embodiments in accordance with the present disclosure will be described with reference to the drawings, in which:

FIG. 1 shows an illustrative example of activating a generated key using an associated workflow in accordance with one embodiment;

FIG. 2 shows an illustrative example of key rotation in accordance with one embodiment;

FIG. 3 shows an illustrative example of a key management system in a program execution service environment in accordance with one embodiment;

FIG. 4 shows an illustrative example of a key management system used to aid in SSL certificate rotation in accordance with one embodiment;

FIG. 5 shows an illustrative example of a key management system used to aid in storage encryption key rotation in accordance with one embodiment;

FIG. 6 shows an illustrative example of key management systems and processing during SSL certificate rotation in accordance with one embodiment;

FIG. 7 shows an illustrative example of a process that may be used to activate a generated key using a workflow in accordance with one embodiment;

FIG. 8 shows an illustrative example of a process that may be used to distribute a generated key in accordance with one embodiment;

FIG. 9 shows an illustrative example of a process that may be used to rotate a generated key in accordance with one embodiment;

FIG. 10 shows an illustrative example of a process that may be used to activate a generated key using a marketplace in accordance with one embodiment;

FIG. 11 shows an illustrative example of an environment that may be used to activate a generated key in accordance with one embodiment;

FIG. 12 illustrates an environment in which various embodiments can be implemented.

DETAILED DESCRIPTION

In the following description, various embodiments will be described. For purposes of explanation, specific configurations and details are set forth in order to provide a thorough understanding of the embodiments. However, it will also be apparent to one skilled in the art that the embodiments may be practiced without the specific details. Furthermore, well-known features may be omitted or simplified in order not to obscure the embodiment being described.

Techniques described and suggested herein include processing a material set, such as an asymmetric keypair, using an associated workflow to prepare the material set for activation and/or use. In one embodiment, a material set is generated and information about the material set is communicated to a workflow manager. Based at least on the information, the workflow manager generates a workflow that when accomplished will allow the material set to be activated and/or used. Once the workflow is successfully completed, the completion is reported to the key manager. The key manager then marks the material set as activated. An advantage of an automated system that processes such a workflow is that the material set need not be disclosed or accessible to administrators. As the workflow controls the processing of key information, the workflow defines how disclosure of the key information occurs, if it occurs.

In one embodiment, a service provider provides a key manager, workflow manager and destination for the key, such as a load balancer that terminates SSL connections. As the systems are provided by the service provider under the control of the service provider, the service provider may define the interactions between these services in a workflow. A key can be generated by the key manager, sent through the workflow manager for processing (and potentially communicated to third parties such as a certificate authority, if needed) and installed at a destination because the interaction is defined and/or controlled by the service provider. In some embodiments, this integration is achieved by a program execution service, such as cloud services, in which computing resources and/or virtual computing resources may be provisioned and retired as needs arise.

In one embodiment, key rotation may be defined in a workflow. A key manager may determine a set of servers that require receipt of a key, such as a set of load balancers. The key manager may provide the key and a list of the servers in the set to a key distribution manager. The key distribution manager may distribute the key to the set of servers identified on the list as a non-preferred key. As a non-preferred key, the key may be used if required (such as receipt of an encrypted file that is associated with the non-preferred key), but defaults to a preferred key. The workflow manager may ensure that each of the set of servers acknowledge receipt of the key or has been excused from acknowledgement by an administrator to complete the distribution of the key. Once the distribution is complete, the key distribution manager may then request that each of the servers having the key make the key a preferred key. As a preferred key, the new key can be used to secure information unless a need arises to use a non-preferred key, if allowed. In some embodiments, a non-preferred key is only allowed to be used during transition periods. The key distribution manager then communicates the success of the key rotation to the key manager which marks the key as active. An advantage of this workflow is that the distribution of a non-preferred key and switch to a preferred key is part of the workflow and does not require knowledge gained outside of the workflow. Another advantage is that manual intervention may not be required if the distribution is successful.

Security policies may also included in and/or trigger workflows. For example, a security policy may require a key rotation every 90 days with the workflow to commence 2 weeks before the end of the 90 days. At two weeks before the deadline, the workflow manager attempts to distribute a new key to appropriate servers. If not complete before one week, a warning may issue to the administration. After successful distribution, the workflow manager requests the servers to cause the new key to become the preferred key. The workflow manager can then report to the key manager that the new key is active.

Workflows may also include instructions for handling error conditions. Using the above example, if a workflow manager is unsuccessful in distribution at one week before the end of the 90 days, the workflow manager may send a warning to an administration team for action. The administration team may log on to an administration portal and view the detected problems, such as a set of servers showing up as unavailable. The administration team may then determine if the set of servers should be subject to an exception to the policy, such as the servers should be excepted from the policy because the servers are down for maintenance and will pull the new key upon restart. By integrating a key manager and a workflow manager, an administrative team may focus on fixing exceptions to the workflow.

Keys may include symmetric, asymmetric and fractional keys. For example, an asymmetric key may include a public and private keypair. A symmetric key may include algorithms such as twofish, advanced encryption standard (AES), blowfish, triple data encryption algorithm (3DES) and international data encryption algorithm. Fractional keys may include algorithms that use one or more keys together to cryptographically process data. The keys may be created by a key generator, which may trigger a key distribution system upon key generation.

Turning now to FIG. 1, an illustrative example of activating a generated key using an associated workflow in accordance with one embodiment is shown. Using the system shown in FIG. 1, a key 114 may be taken from initial generation to a useful state based on information about the key 114. The processing of the generated key is shown in three phases: a generation phase 100, a selection phase 102 and a processing phase 104. In generation phase, a client 106 may instruct a key manager 112 to generate and store a material set that may include a key 114 and other information, such as a key class 110. In the embodiment shown, the client 106 sends a request 108 for key generation that identifies a key class 110 to a key manager 112. The key class 110 is associated with a workflow template that may be used to activate a key associated with the key class 110. In some embodiments, characteristics of a key, the proposed end use of a key or the workflow or process for activating a key define a key class. The key manager 112 may generate the key 114 (which may be part of a more comprehensive material set) and store the key 114.

In the selection phase 102, the key manager 112 sends key information 116 to the workflow manager 118 such that a workflow 122 may be generated to process and activate the key 114. In the embodiment shown, the key manager 112 sends key information 116 to the workflow manager. The key information 116 provides enough information about the generated key 114 to allow the workflow manager to select a workflow template 120 and generate a workflow 122 to process the key 114. In some embodiments, the key information may include the key 114 itself. In other embodiments, the key information may describe the key, such as including the key class 110 and a reference to the key.

In the processing phase 104, the workflow manager 118 processes the generated workflow 122 until complete and reports the completion and/or activation to the key manager 112. In the embodiment shown, the workflow manager 118 processes the workflow and updates the key manager 122 and/or audit system 124 with status 126 information related to the key 114 associated with the key information 116. After completion of the workflow 122, the key manager 112 and/or audit system 124 are updated with the status 126 of the completion. The key manager 112 may then mark and/or consider the key as activated.

Turning now to FIG. 2, an illustrative example of key rotation in accordance with one embodiment in accordance with one embodiment is shown. Upon key generation, a new key 114 can be distributed to a set of computing resources 212 such that the set of computing resources 212 have received the key 114 before the key 114 is fully relied upon. For example, a key may be distributed to a set of storage servers responsible for encryption and decryption of files. The key rotation is described in three phases: distribution 200, acknowledgement 202, and preference 204. During the distribution phase, the key manager 112 shares the key 114 with a key distribution manager 208 to distribute the key 114 to appropriate computing resources 212. In the embodiment shown, a key manager 112 shares a list of resources 206 and a key 114 with a key distribution manager 208. Using the list of resources 210, the key distribution manager 208 distributes the key 114 to the computing resources 212 identified in the list of resources. The key 114 is distributed as a non-preferred key such that a currently preferred key may be continued to be used.

In the acknowledgement phase, the key distribution manager 208 determines which computing resources have received the generated key. After receipt of the key 114, each computing resource 212 sends an acknowledgement 214 to the key distribution manager 208. The acknowledgement may be based in part on the key, such as including a digital signature using the key. The key distribution manager 208 compares the received acknowledgements with the list of resources 206 and upon either receiving an acknowledgement 214 or excusing a computing resource 212 from an acknowledgement 214, the process may move to the next phase. In some cases, not all computing resources 212 will reply with an acknowledgement 214. In some embodiments, the key distribution manager 208 may use error processing in the event of an error. For example, the key distribution manager 208 may include redistribution of the key 114 to computing resources may be attempted until an acknowledgement is received. In other embodiments an administrator may make an exception and/or remove servers from the list of resources 206. In one embodiment, a computing resource monitor may detect the failure of one or more computing resources 212 and grant an exception for the failing computing resource and/or remove the failing computing resource from the list or resources 206.

Once all of the computing resources 212 have responded with an acknowledgement 214, have an exception or have been removed from the list of resources 206, the preference phase 204 may begin. In the preference phase 204, the key distribution manager causes the computing resources 212 to switch the newly acknowledged key 114 from a non-preferred role to a preferred role. In some embodiments, this switch is viewed as moving from an alternate key to a default key. In the embodiment shown in FIG. 2, the key distribution manager 208 sends to the computing resources 212 identified on the list of resources that are not excepted or removed a request 216 to make the acknowledged key a preferred key 114. Upon completion of the switch to a preferred key 114, the key distribution manager 208 and/or computing resources 212 may report success to the key manager 112. In one embodiment, the key distribution manager may be a logical part of the key manager.

In some embodiments, this distribution of a key 114 show in FIG. 2 can be implemented in conjunction with FIG. 1 as a workflow. In other embodiments, the distribution may occur upon generation of a key for rotation such that no template workflow is selected. The system may merely start the process shown in FIG. 2 as a predetermined process.

Turning now to FIG. 3, an illustrative example of a key management system in a program execution service environment 300 in accordance with one embodiment is shown. Computing systems 302, such as desktops 304, laptops 306 and mobile devices 308 may communicate over the Internet 310 with a program execution service 311. Customers of clients managing systems in the program execution service 311 may enter through a gateway 312 in which their communications are then routed through internal networking 322 to client computing resources 324. Clients using computing systems 302 may manage their services by communicating over the Internet 310 with a control plane 314. The control plane 314 may include a workflow manager 118 and a key management system 316. The key management system 316 may further include a key manager 112, key distribution manager 208, administrative console 318 and audit system 320. The key management system 316 may be used to manage distribution, activation and processing of keys within the program execution service 311. For example, the key distribution manager 208 may distribute keys to client computing resources 324, such as virtual machines, upon generation of the key by the key manager 112. A monitoring system 326 may report to the key management system 316 or the workflow manager 118 about problems with the computing resources 324. The audit system 320 may provide details about actions taken and workflow processes completed and/or attempted. In some cases, the audit system may provide warnings via different communication channels such as SMS, email, messaging and/or voice. The administrative console 318 may provide access to administrators to monitor progress and/or manage exceptions to the processing of keys.

By having these systems managed by a program execution service 311, consistent interfaces may be maintained between the various systems. Furthermore, the economies of scale may be useful because programming interfaces between these systems and services may serve many clients that desire to use key rotation. Another advantage is that a private key may never need to leave the internal network 322 of the program execution service 311. Since the private key may not leave the internal network 322, there may not be a need for client access to the private key. In some embodiments, the key management system 316 may complete the rotation, distribution and/or management of private keys without allowing administrative access. As the program execution service 311 and other service provider programs are the only programs with access, the key may be considered more safe. Internal theft, compromised client systems may no longer be a threat because the client may not have access to the keys. In one embodiment, however, the client may bring their own private key and then request the key management system process the private key for use.

The workflow manager 118, key manager 112 and key distribution manager 208 may be collectively implemented by one or more computing resources comprising one or more processors and memory including executable instructions that, when executed by the one or more processors, cause the one or more processors to implement the workflow manager 118, key manager 112 and key distribution manager 208. For example, the workflow manager 118 may be a collection of virtual machines with a managing virtual machine that assigns workflows to be processed by the collection of virtual machines. A key management system 316 may be a collection of virtual machines with a managing virtual machine that implement the key manager 112 and key distribution manager 208 functionality. In another example, the workflow manager 118, key manager 112 and key distribution manager 208 are one or more programs that share a physical machine and operating system. In a further example, the workflow manager 118 may be operated by a third party. The key management system 316 may be operated by a service provider to provide a key manager 112 and key distribution manager 208 functionality. The key management system 316 may distribute key information to the workflow manager 118, such as information that describes the key, but the key itself is not released to a client, the third party or the workflow manager 118.

In FIGS. 4-6 illustrative examples of specific embodiments are shown including SSL systems (FIG. 4), secure storage (FIG. 5) and certificate management systems (FIG. 6). Turning now to FIG. 4, an illustrative example of a key management system environment 400 used to aid in SSL certificate rotation in accordance with one embodiment is shown. Using the processes discussed in FIG. 1 and/or FIG. 2, an SSL certificate may be prepared for use with computing resources acting as SSL terminators on behalf of a client. In the embodiment shown, an asymmetric keypair 408 is generated for use in SSL communications. The key manager 112 communicates key information 116 to a workflow manager 118. In one embodiment, the workflow manager 118 selects an SSL processing template from a group of templates (as seen in FIG. 1) and uses the template to generate a workflow 122. In another embodiment, the workflow manager 118 receives the key information 116 and processes the key information 116 the same way without selecting a workflow. Whether a workflow was selected and created or not, the workflow manager 118 creates a certificate signing request 410 (CSR) using the key information 116 and sends the CSR 410 to a certificate authority 414. If the certificate authority 414 is satisfied by the identity of the client behind the CSR 414, the certificate authority 414 returns a signed certificate 406. The workflow manager 118 may return the signed certificate 406 to the key manager 112. The key manager 112 may send at least part of the keypair 408 and certificate 406 to a key distribution manager 118. The key distribution manager 118 may distribute the signed certificate 406 and keypair 408 to computing resources 402 acting as secure communications terminators 404 on behalf of the client. For example the signed certificate 406 and a private key of the keypair 408 may be distributed to a set of load balancers or a load balancer management system that terminate SSL on behalf of the client.

Secure communications may not be the only use for key distribution. For example in FIG. 5, a distributed storage environment 500 using encrypted data may also use key rotation. Storage resources 502 may, for instance, have access to a list of encryption keys used for storage. New incoming data may be encrypted with a preferred key, but outgoing decrypted data may use any key known to the storage resource 502. By loading a rotated key as non-preferred and then switching the key to preferred after verifying receipt of the key, storage resources 506 are not put in a position of being unable to access encrypted data 506 due to lack of a proper key. In FIG. 5, an illustrative example of a key management system 316 used to aid in storage encryption key rotation in accordance with one embodiment is shown. A generated key 408 may be communicated from a key manager 112 to a key distribution manager 208. The key distribution manager 208 may distribute the key 408 as a non-preferred key to storage resources 502 within a secure storage service 504. After receiving an acknowledgement from the storage resources 502 or an exception allowing the workflow manager to continue, the key distribution manager 208 may request the storage resources 502 use the key 408 as the preferred key.

Turning now to FIG. 6, an illustrative example of key management systems and processing during SSL certificate rotation using a workflow in accordance with one embodiment is shown. A key manager 112 generates a public key 602 and private key 604. The public key 602 is shared with a workflow manager 118, which uses the public key 602 to determine a workflow 122 to generate. Following the workflow, the workflow manager 118 uses the public key 602 and private key 604 to create a CSR 410. Following the next operation in the workflow 122, the CSR 410 is sent to a certificate authority 406. The certificate authority 410 uses the CSR 410 to create a certificate 406 and return it to the workflow manager 122. The workflow manager 118, using the workflow 122, then returns the certificate 406 to the key manager 112. As the workflow has been completed, the certificate is marked as active and ready for use. Upon a request by a client to provision a load balancer, the private key 604 and certificate are sent to a load balancer manager 606 by the key manager 112. The load balancer manager 606 may cause the private key 604 and certificate 406 to be installed on a provisioned load balancer with secure communications termination.

Turning now to FIG. 7, an illustrative example of a process 700 that may be used to activate a generated key using a workflow in accordance with one embodiment is shown. The process may be accomplished by a key manager 112 and workflow manager 118 as seen in FIG. 1. The key manager 702 generates a secret. A workflow manager receives the secret and determines 704 a workflow template associated with the secret that may be used to prepare the secret for use. Using the template, the workflow manager generates 706 a workflow based at least in part on the selected template. The workflow manager then processes 708 the workflow. Upon completing the workflow, the workflow may report the completion to the key manager in which the secret is marked 710 as active.

Some or all of the process 700 (or any other processes described herein, or variations and/or combinations thereof) may be performed under the control of one or more computer systems configured with executable instructions and may be implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications) executing collectively on one or more processors, by hardware, or combinations thereof. The code may be stored on a computer-readable storage medium, for example, in the form of a computer program comprising a plurality of instructions executable by one or more processors. The computer-readable storage medium may be non-transitory.

Turning now to FIG. 8, an illustrative example of a process 800 that may be used to distribute a generated key in accordance with one embodiment is shown. The process may be completed by a key manager 112 and key distribution manager 208 shown in FIG. 2. A secret is generated 802. The key manager determines 804 which computing resources should receive the generated secret. The list of resources may be received from a client, determined by a class of secrets, determined through metadata or determined by the key manager based at least in part on the key generated. The key distribution manager 208 communicates 806 the secrets to the computing resources as non-preferred or alternate secrets. The key distribution manager 208 receives an acknowledgement 808 from the computing resources or a computing resource is excepted from acknowledgement. The key distribution manager 208 then requests 810 the computing resources to mark the secret as preferred or default. In some embodiments, the workflow management system 208 then reports the success to the key manager 112 that marks the secret as active.

Turning now to FIG. 9, an illustrative example of a process that may be used to rotate a generated key in accordance with one embodiment is shown. In some embodiments, error processing may be included in a workflow and/or processing of a secret. The process may be completed by a key manager 112 and key distribution manager 208 shown in FIG. 2. The key manager 112 and/or key distribution manager 208 check to see if a security policy triggers 902 a start to key rotation. If no, the process may wait and check again 902. If so, the key manager 112 generates 904 a secret. A list of computing resources needing the secret is determined 906 by the key manager. The workflow manager may check for resources that have been granted exceptions and remove 908 any excepted resources from the list of computing resources. The key distribution manager 208 then communicates 910 the secret as a non-preferred secret to the resources remaining as part of the list computing resources. Acknowledgements from computing resources may be received 912. Resources having acknowledged can be removed 914 from the list of computing resources to receive the secret. If not all resources have acknowledged 916, and an initial timeframe for completing the acknowledgement phase has passed 918, an alarm may be communicated 920 to administrators. Whether or not the initial timeframe has passed 918, communication of the key as non-preferred may be reattempted on servers that have not acknowledged the receipt and/or have not been excepted from an acknowledgement by repeating operations 908 to 914. If all acknowledgements have been satisfied or excepted, the key distribution manager 208 requests 922 the computing resources to mark the secret as preferred. The client may then be billed for use of the processing and/or workflow. In some embodiments, a client is charged per machine. In other embodiments, the client may be charged for use of the workflow.

While specific modules and systems have been discussed as having certain functionality for clarity of explanation, it should be recognized that functionality may be moved between modules and/or systems without departing from the scope of this disclosure. For example, while the key manager 112 has been discussed as capable of generating a key, it should be recognized that a key distribution manager 208 may generate or direct to be generated a key. A key distribution manager may also determine a list of computing resources that should receive a key.

In some embodiments, clients, vendors and the service provider may share and/or charge for workflows that generate and process secrets. By selecting a workflow and/or secret from the marketplace, a client may have a secret prepared and installed for use without manual intervention. For example, a client may choose to request SSL through a secure terminator like a load balancer. By selecting an SSL workflow, the client may not need to know about the generation of an asymmetric keypair, certificate signing request or installation of a certificate and private key. The client may select and/or pay for the SSL certificate and request a load balancer be provisioned with SSL termination. Billing may be accomplished by the certificate authority by completion of the workflow rather than upon sending of the certificate. In another example, a client may desire secure storage. The client may select an encryption secret workflow that can be used with long term storage in a program execution service. The encryption secret workflow may complete and store the secret with the program execution service's long term storage service. The client may then store encrypted data within the long term storage.

Turning now to FIG. 10, an illustrative example of a process 1000 that may be used to activate a generated key using a marketplace in accordance with one embodiment is shown. In some embodiments, secrets and/or workflows may be sold in a marketplace. By purchasing from the marketplace, the secret and workflow are bundled together. For example, a marketplace may allow a client to select a certificate authority from which an SSL certificate may be obtained. The secret and workflow may be prepared by the vendor to quickly integrate with a service provider's systems, such as seen in FIG. 6. In the process shown, a client may select 1002 a workflow, template, secret or vendor from a marketplace. Based on the selection, a secret is generated 1004 by the key manager. A workflow for processing the secret is generated 1006 based at least in part on the generated secret and/or selection. The workflow may then be processed 1008 to make the secret useful. Upon completion of the workflow, the secret may be marked 1010 as active and the client charged 1012 for the processing of the workflow.

Turning now to FIG. 11, an illustrative example of an environment that may be used to activate a generated key in accordance with one embodiment is shown. A key management system 316 may interact with various support systems, such as those found in a program execution service. The key management system 316 may communicate with a set of computing resources 1102 to not only distribute or rotate keys to client computing resources, but also to request computing resources to process workflows and/or keys. The key management system 316 may also communicate with third party systems 1104, such as certificate authorities to place the generated keys in a useful state. The key management system 316 may also use a workflow marketplace 1106 where clients, vendors and the service provider may sell and submit workflows. The key management system may also tie in with existing administration systems 1108 to provide a single portal and a source of information, such as receiving information about offline servers to remove from the list of servers to receive the key. The key management system may also integrate with existing audit systems 1110 to provide feedback and tracking information for work performed by and on behalf of the key management system.

FIG. 12 illustrates aspects of an example environment 1200 for implementing aspects in accordance with various embodiments. As will be appreciated, although a Web-based environment is used for purposes of explanation, different environments may be used, as appropriate, to implement various embodiments. The environment includes an electronic client device 1202, which can include any appropriate device operable to send and receive requests, messages, or information over an appropriate network 1204 and convey information back to a user of the device. Examples of such client devices include personal computers, cell phones, handheld messaging devices, laptop computers, set-top boxes, personal data assistants, electronic book readers, and the like. The network can include any appropriate network, including an intranet, the Internet, a cellular network, a local area network, or any other such network or combination thereof. Components used for such a system can depend at least in part upon the type of network and/or environment selected. Protocols and components for communicating via such a network are well known and will not be discussed herein in detail. Communication over the network can be enabled by wired or wireless connections, and combinations thereof. In this example, the network includes the Internet, as the environment includes a Web server 1206 for receiving requests and serving content in response thereto, although for other networks an alternative device serving a similar purpose could be used as would be apparent to one of ordinary skill in the art.

The illustrative environment includes at least one application server 1208 and a data store 1210. It should be understood that there can be several application servers, layers, or other elements, processes, or components, which may be chained or otherwise configured, which can interact to perform tasks such as obtaining data from an appropriate data store. As used herein the term “data store” refers to any device or combination of devices capable of storing, accessing, and retrieving data, which may include any combination and number of data servers, databases, data storage devices, and data storage media, in any standard, distributed, or clustered environment. The application server can include any appropriate hardware and software for integrating with the data store as needed to execute aspects of one or more applications for the client device, handling a majority of the data access and business logic for an application. The application server provides access control services in cooperation with the data store, and is able to generate content such as text, graphics, audio, and/or video to be transferred to the user, which may be served to the user by the Web server in the form of HTML, XML, or another appropriate structured language in this example. The handling of all requests and responses, as well as the delivery of content between the client device 1202 and the application server 1208, can be handled by the Web server. It should be understood that the Web and application servers are not required and are merely example components, as structured code discussed herein can be executed on any appropriate device or host machine as discussed elsewhere herein.

The data store 1210 can include several separate data tables, databases, or other data storage mechanisms and media for storing data relating to a particular aspect. For example, the data store illustrated includes mechanisms for storing production data 1212 and user information 1216, which can be used to serve content for the production side. The data store also is shown to include a mechanism for storing log data 1214, which can be used for reporting, analysis, or other such purposes. It should be understood that there can be many other aspects that may need to be stored in the data store, such as for page image information and to access right information, which can be stored in any of the above listed mechanisms as appropriate or in additional mechanisms in the data store 1210. The data store 1210 is operable, through logic associated therewith, to receive instructions from the application server 1208 and obtain, update, or otherwise process data in response thereto. In one example, a user might submit a search request for a certain type of item. In this case, the data store might access the user information to verify the identity of the user, and can access the catalog detail information to obtain information about items of that type. The information then can be returned to the user, such as in a results listing on a Web page that the user is able to view via a browser on the user device 1202. Information for a particular item of interest can be viewed in a dedicated page or window of the browser.

Each server typically will include an operating system that provides executable program instructions for the general administration and operation of that server, and typically will include a computer-readable storage medium (e.g., a hard disk, random access memory, read only memory, etc.) storing instructions that, when executed by a processor of the server, allow the server to perform its intended functions. Suitable implementations for the operating system and general functionality of the servers are known or commercially available, and are readily implemented by persons having ordinary skill in the art, particularly in light of the disclosure herein.

The environment in one embodiment is a distributed computing environment utilizing several computer systems and components that are interconnected via communication links, using one or more computer networks or direct connections. However, it will be appreciated by those of ordinary skill in the art that such a system could operate equally well in a system having fewer or a greater number of components than are illustrated in FIG. 12. Thus, the depiction of the system 1200 in FIG. 12 should be taken as being illustrative in nature, and not limiting to the scope of the disclosure.

The various embodiments further can be implemented in a wide variety of operating environments, which in some cases can include one or more user computers, computing devices, or processing devices which can be used to operate any of a number of applications. User or client devices can include any of a number of general purpose personal computers, such as desktop or laptop computers running a standard operating system, as well as cellular, wireless, and handheld devices running mobile software and capable of supporting a number of networking and messaging protocols. Such a system also can include a number of workstations running any of a variety of commercially-available operating systems and other known applications for purposes such as development and database management. These devices also can include other electronic devices, such as dummy terminals, thin-clients, gaming systems, and other devices capable of communicating via a network.

Most embodiments utilize at least one network that would be familiar to those skilled in the art for supporting communications using any of a variety of commercially-available protocols, such as TCP/IP, OSI, FTP, UPnP, NFS, CIFS, and AppleTalk. The network can be, for example, a local area network, a wide-area network, a virtual private network, the Internet, an intranet, an extranet, a public switched telephone network, an infrared network, a wireless network, and any combination thereof.

In embodiments utilizing a Web server, the Web server can run any of a variety of server or mid-tier applications, including HTTP servers, FTP servers, CGI servers, data servers, Java servers, and business application servers. The server(s) also may be capable of executing programs or scripts in response requests from user devices, such as by executing one or more Web applications that may be implemented as one or more scripts or programs written in any programming language, such as Java®, C, C# or C++, or any scripting language, such as Perl, Python, or TCL, as well as combinations thereof. The server(s) may also include database servers, including without limitation those commercially available from Oracle®, Microsoft®, Sybase®, and IBM®.

The environment can include a variety of data stores and other memory and storage media as discussed above. These can reside in a variety of locations, such as on a storage medium local to (and/or resident in) one or more of the computers or remote from any or all of the computers across the network. In a particular set of embodiments, the information may reside in a storage-area network (“SAN”) familiar to those skilled in the art. Similarly, any necessary files for performing the functions attributed to the computers, servers, or other network devices may be stored locally and/or remotely, as appropriate. Where a system includes computerized devices, each such device can include hardware elements that may be electrically coupled via a bus, the elements including, for example, at least one central processing unit (CPU), at least one input device (e.g., a mouse, keyboard, controller, touch screen, or keypad), and at least one output device (e.g., a display device, printer, or speaker). Such a system may also include one or more storage devices, such as disk drives, optical storage devices, and solid-state storage devices such as random access memory (“RAM”) or read-only memory (“ROM”), as well as removable media devices, memory cards, flash cards, etc.

Such devices also can include a computer-readable storage media reader, a communications device (e.g., a modem, a network card (wireless or wired), an infrared communication device, etc.), and working memory as described above. The computer-readable storage media reader can be connected with, or configured to receive, a computer-readable storage medium, representing remote, local, fixed, and/or removable storage devices as well as storage media for temporarily and/or more permanently containing, storing, transmitting, and retrieving computer-readable information. The system and various devices also typically will include a number of software applications, modules, services, or other elements located within at least one working memory device, including an operating system and application programs, such as a client application or Web browser. It should be appreciated that alternate embodiments may have numerous variations from that described above. For example, customized hardware might also be used and/or particular elements might be implemented in hardware, software (including portable software, such as applets), or both. Further, connection to other computing devices such as network input/output devices may be employed.

Storage media and computer readable media for containing code, or portions of code, can include any appropriate media known or used in the art, including storage media and communication media, such as but not limited to volatile and non-volatile, removable and non-removable media implemented in any method or technology for storage and/or transmission of information such as computer readable instructions, data structures, program modules, or other data, including RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by the a system device. Based on the disclosure and teachings provided herein, a person of ordinary skill in the art will appreciate other ways and/or methods to implement the various embodiments.

The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense. It will, however, be evident that various modifications and changes may be made thereunto without departing from the broader spirit and scope of the invention as set forth in the claims.

Other variations are within the spirit of the present disclosure. Thus, while the disclosed techniques are susceptible to various modifications and alternative constructions, certain illustrated embodiments thereof are shown in the drawings and have been described above in detail. It should be understood, however, that there is no intention to limit the invention to the specific form or forms disclosed, but on the contrary, the intention is to cover all modifications, alternative constructions, and equivalents falling within the spirit and scope of the invention, as defined in the appended claims.

The use of the terms “a” and “an” and “the” and similar referents in the context of describing the disclosed embodiments (especially in the context of the following claims) are to be construed to cover both the singular and the plural, unless otherwise indicated herein or clearly contradicted by context. The terms “comprising,” “having,” “including,” and “containing” are to be construed as open-ended terms (i.e., meaning “including, but not limited to,”) unless otherwise noted. The term “connected” is to be construed as partly or wholly contained within, attached to, or joined together, even if there is something intervening. Recitation of ranges of values herein are merely intended to serve as a shorthand method of referring individually to each separate value falling within the range, unless otherwise indicated herein, and each separate value is incorporated into the specification as if it were individually recited herein. All methods described herein can be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context. The use of any and all examples, or exemplary language (e.g., “such as”) provided herein, is intended merely to better illuminate embodiments of the invention and does not pose a limitation on the scope of the invention unless otherwise claimed. No language in the specification should be construed as indicating any non-claimed element as essential to the practice of the invention.

Preferred embodiments of this disclosure are described herein, including the best mode known to the inventors for carrying out the invention. Variations of those preferred embodiments may become apparent to those of ordinary skill in the art upon reading the foregoing description. The inventors expect skilled artisans to employ such variations as appropriate, and the inventors intend for the invention to be practiced otherwise than as specifically described herein. Accordingly, this invention includes all modifications and equivalents of the subject matter recited in the claims appended hereto as permitted by applicable law. Moreover, any combination of the above-described elements in all possible variations thereof is encompassed by the invention unless otherwise indicated herein or otherwise clearly contradicted by context.

All references, including publications, patent applications, and patents, cited herein are hereby incorporated by reference to the same extent as if each reference were individually and specifically indicated to be incorporated by reference and were set forth in its entirety herein. 

What is claimed is:
 1. A computer-implemented method for key management, comprising: providing a set of workflow templates associated with a set of classes of keys to a client; receiving a request from the client to generate a key based at least in part on a workflow template of the set of workflow templates; after receiving the request from the client, generating an asymmetric keypair by a key management system, the generated keypair unavailable for use by the client until processed through a workflow; associating the keypair with a class of keys of the set of classes by the key management system, the class of keys corresponding to a workflow template associated with a workflow management system for preparing the keypair to become active; communicating, by the key management system, the generation of the keypair to the workflow management system configured to generate and process the workflow for the keypair based at least in part on the workflow template; activating, by the key management system, the keypair for use after the workflow has completed, the activating comprising distributing the keypair to computing resources over an internal network and sending a notification to the client that the keypair is available for use without sending the keypair to the client; generating a new keypair based at least in part on the class of keys associated with the keypair, the new keypair unavailable for use by the client until processed through a replacement workflow associated with the class of keys; and deactivating the keypair based at least in part on activating the new keypair.
 2. The computer-implemented method of claim 1, wherein the workflow management system is further configured to generate and process the workflow for the keypair by at least: generating a certificate signing request that includes a public key portion of the keypair; sending the certificate signing request to a Certificate Authority; receiving a signed certificate; and importing the signed certificate to be used with the keypair.
 3. The computer-implemented method of claim 2, wherein the method further comprises sending a private key of the keypair and a certificate to a load balancer management system to enable a load balancer to terminate secure communications.
 4. The computer-implemented method of claim 1, wherein the workflow management system is further configured to generate and process the workflow by at least: performing a webservice call using credentials, the webservice call including a public key portion of the keypair; and receiving an acknowledgement of receipt of the public key portion of the keypair.
 5. The computer-implemented method of claim 1, wherein activating the keypair for use further comprises transmitting one or more electronic communications to one or more third party systems that the keypair is activated.
 6. The computer-implemented method of claim 1, further comprising selecting the workflow from a set of workflows, the workflow selected based at least in part on the class associated with the keypair.
 7. A computer-implemented method for key management, comprising: providing a set of workflow templates associated with a set of classes of secrets to a client; receiving a request from the client to generate a secret based at least in part on a workflow template of the set of workflow templates; after receiving the request from the client, generating the secret associated with a class of secrets of the set of classes of secrets by a key management system, the generated secret being inactive for use by at least the client; sending, by the key management system, information about the secret to a workflow management system configured to process a workflow according to the workflow template based at least in part on the information; activating, by the key management system, the secret for use after determining that the workflow is complete, the activating comprising distributing the secret to a computing resource over an internal network and notifying the client that the secret is available for use without sending the secret to the client; generating a new secret based at least in part on the class of secrets associated with the secret, the new secret inactive for use by at least the client until processed through a replacement workflow associated with the class of secrets; and deactivating the secret based at least in part on activating the new secret.
 8. The computer-implemented method of claim 7, wherein the method further comprises: creating the workflow template as a basis for constructing the workflow, the workflow template comprising operations to setup a secure environment that uses the secret; and associating the workflow template with the class of secrets.
 9. The computer-implemented method of claim 7, wherein the method further comprises receiving the request through an application programming interface of a program execution service.
 10. A system comprising: one or more computing resources comprising one or more processors and memory including executable instructions that, when executed by the one or more processors, cause the one or more processors to collectively implement at least: a key manager configured to: provide a set of workflow templates associated with a set of classes of secrets to a client; receive a request from the client to generate at least one secret based at least in part on a workflow template of the set of workflow templates; generate the at least one secret in response to the request from the client; associate the at least one secret with at least one workflow based at least in part on the workflow template; maintain the at least one secret as inactive until receipt of information that the at least one workflow is complete; notify the client when the at least one secret becomes active without sending the at least one secret to the client; and associated with the at least one secret, the at least one new secret inactive until processed through a replacement workflow associated with the class of secrets; a workflow management system configured to: receive information about the at least one secret; and in response to receiving the information about the at least one secret, generate the at least one workflow, process the at least one workflow, and report completion of the at least one workflow to the key manager; and a key distribution manager configured to: distribute the at least one secret to at least one computing resource over an internal network to enable the at least one computing resource to perform cryptographic operations; and deactivate the at least one secret based at least in part on activating the at least one new secret.
 11. The system of claim 10, wherein the system further comprises an administrative system that includes an interface to manage the at least one workflow and the association between the at least one workflow and the at least one secret.
 12. The system of claim 10, wherein the key manager and the workflow management system are components of a program execution service that provides computing services for executing the at least one workflow.
 13. The system of claim 12, wherein the program execution service further comprises a load balancer that receives the secret from the key distribution manager after the at least one workflow is completed.
 14. The system of claim 10, wherein the system further comprises a network, the network providing a communications path between the key manager and the workflow management system.
 15. The system of claim 14, wherein the workflow management system further comprises an application programming interface, the application programming interface receiving information from the key manager through the network.
 16. One or more non-transitory computer-readable storage media having collectively stored thereon executable instructions that, when executed by one or more processors of a computer system, cause the computer system to at least: provide a set of workflow templates associated with a set of classes of secrets to a client; receive a request from the client to generate a key based at least in part on a workflow template of the set of workflow templates; generate the key after receiving the request from the client, the key associated with a class of secrets of the set of classes and being inactive; invoke a workflow according to the workflow template based at least in part on the class of secrets associated with the key; activate the key for use after the workflow has been processed, the activate comprising distributing the key to a computing resource over an internal network and notifying the client that the key is active without transmitting the key to the client; generate a new key based at least in part on the class of secrets associated with the key, the new key inactive until processed through a replacement workflow associated with the class of secrets; and deactivate the key based at least in part on activating the new key.
 17. The non-transitory computer-readable storage media of claim 16, wherein the instructions further comprise instructions that, when executed, cause the computer system to at least cause a cost to accrue to an account of the client based at least in part on activating the key.
 18. The non-transitory computer-readable storage media of claim 16, wherein the instructions further comprise instructions that, when executed, cause the computer system to at least store, as accessible to a key distribution manager, the association of the class of secrets with the key.
 19. The non-transitory computer-readable storage media of claim 16, wherein the request comprises a request to create a new key compatible with the class of secrets, the request triggering the generating of the new key.
 20. The method of claim 7, wherein the class of secrets is associated with a data structure comprising a characteristic of the secret, information about an end use of the secret, and information about the workflow.
 21. The method of claim 7, wherein the workflow is based at least in part on the class of secrets.
 22. The method of claim 7, wherein the secret is inactive to the client prior to completion of the workflow, and wherein the secret is active and inaccessible to the client upon completion of the workflow. 